// 我的发起
var initiateGridColumns = [{
    id: 'title',
    title: '标题',
    width: 200,
    type: 'string',
    columnClass: 'text-center',
  },
  {
    id: 'content',
    title: '主要内容',
    type: 'string',
    columnClass: 'text-left',
  },
  {
    id: 'userName',
    title: '发起人',
    type: 'string',
    width: 80,
    columnClass: 'text-center',
  },
  {
    id: 'time',
    title: '提交时间',
    type: 'date',
    width: 100,
    format: 'yyyy-MM-dd',
    columnClass: 'text-center',
    hideType: 'md|sm|xs',
  },
  {
    id: 'operation',
    title: '操作',
    width: 80,
    type: 'string',
    columnClass: 'text-center',
    resolution: function (value, record, column, grid, dataNo, columnNo) {
      var content = '';
      content += '<button class="btn btn-xs btn-success" onclick="toDo(' + record.id + ',' + record.doType + ');"><i class="icon-eye-open"></i>  查看</button>';
      return content;
    }
  }
];

var initiateGridOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  // check: true,
  // checkWidth: '37px',
  exportFileName: '我的发起',
  datas: [{
    id: 1,
    title: '项目线索申请',
    userName: '张三测试',
    content: '线索申请信息',
    time: '9999-99-99',
    doType: 58,
  }, {
    id: 2,
    title: '项目立项申请',
    userName: '张三测试',
    content: '立项申请信息（勾选了项目经理）',
    time: '9999-99-99',
    doType: 59,
  }, {
    id: 3,
    title: '项目立项申请',
    userName: '张三测试',
    content: '立项申请信息',
    time: '9999-99-99',
    doType: 60,
  }, {
    id: 4,
    title: '项目投标申请',
    userName: '张三测试',
    content: '投标申请信息',
    time: '9999-99-99',
    doType: 61,
  }, {
    id: 5,
    title: '项目报价申请',
    userName: '张三测试',
    content: '报价信息',
    time: '9999-99-99',
    doType: 62,
  }, {
    id: 6,
    title: '项目合同申请',
    userName: '张三测试',
    content: '合同信息',
    time: '9999-99-99',
    doType: 63,
  }, {
    id: 7,
    title: '项目交付申请',
    userName: '张三测试',
    content: '交付信息（商务预测）',
    time: '9999-99-99',
    doType: 64,
  }, {
    id: 8,
    title: '项目交付申请',
    userName: '张三测试',
    content: '交付信息（初验信息）',
    time: '9999-99-99',
    doType: 65,
  }, {
    id: 9,
    title: '项目交付申请',
    userName: '张三测试',
    content: '交付信息（终验信息）',
    time: '9999-99-99',
    doType: 66,
  }, {
    id: 10,
    title: '项目需求申请',
    userName: '张三测试',
    content: '需求信息',
    time: '9999-99-99',
    doType: 67,
  }, {
    id: 11,
    title: '项目问题申请',
    userName: '张三测试',
    content: '问题信息',
    time: '9999-99-99',
    doType: 68,
  }, {
    id: 12,
    title: '出差申请',
    userName: '张三测试',
    content: '出差信息',
    time: '9999-99-99',
    doType: 69,
  }, {
    id: 13,
    title: '报销申请',
    userName: '张三测试',
    content: '报销信息',
    time: '9999-99-99',
    doType: 70,
  }, ],
  columns: initiateGridColumns,
  gridContainer: 'initiateDataGird',
  toolbarContainer: 'initiateGridToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 20]
};
var initiateGird = $.fn.dlshouwen.grid.init(initiateGridOption);
$(function () {
  initiateGird.load();
});

// 已办事项
var tdoGridColumns = [{
    id: 'title',
    title: '标题',
    width: 200,
    type: 'string',
    columnClass: 'text-center',
  },
  {
    id: 'content',
    title: '主要内容',
    type: 'string',
    columnClass: 'text-left',
  },
  {
    id: 'userName',
    title: '发起人',
    type: 'string',
    width: 80,
    columnClass: 'text-center',
  },
  {
    id: 'time',
    title: '提交时间',
    type: 'date',
    width: 100,
    format: 'yyyy-MM-dd',
    columnClass: 'text-center',
    hideType: 'md|sm|xs',
  },
  {
    id: 'operation',
    title: '操作',
    width: 80,
    type: 'string',
    columnClass: 'text-center',
    resolution: function (value, record, column, grid, dataNo, columnNo) {
      var content = '';
      content += '<button class="btn btn-xs btn-success" onclick="toDo(' + record.id + ',' + record.doType + ');"><i class="icon-eye-open"></i>  查看</button>';
      return content;
    }
  }
];

var tdoGridOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  // check: true,
  // checkWidth: '37px',
  exportFileName: '已办事项',
  datas: [{
    id: 1,
    title: '项目线索申请',
    userName: '张三测试',
    content: '线索申请信息',
    time: '9999-99-99',
    doType: 85,
  }, {
    id: 2,
    title: '项目立项申请',
    userName: '张三测试',
    content: '立项申请信息（勾选了项目经理）',
    time: '9999-99-99',
    doType: 86,
  }, {
    id: 3,
    title: '项目立项申请',
    userName: '张三测试',
    content: '立项申请信息',
    time: '9999-99-99',
    doType: 87,
  }, {
    id: 4,
    title: '项目投标申请',
    userName: '张三测试',
    content: '投标申请信息',
    time: '9999-99-99',
    doType: 88,
  }, {
    id: 5,
    title: '项目报价申请',
    userName: '张三测试',
    content: '报价信息',
    time: '9999-99-99',
    doType: 89,
  }, {
    id: 6,
    title: '项目合同申请',
    userName: '张三测试',
    content: '合同信息',
    time: '9999-99-99',
    doType: 90,
  }, {
    id: 7,
    title: '项目交付申请',
    userName: '张三测试',
    content: '交付信息（商务预测）',
    time: '9999-99-99',
    doType: 91,
  }, {
    id: 8,
    title: '项目交付申请',
    userName: '张三测试',
    content: '交付信息（初验信息）',
    time: '9999-99-99',
    doType: 92,
  }, {
    id: 9,
    title: '项目交付申请',
    userName: '张三测试',
    content: '交付信息（终验信息）',
    time: '9999-99-99',
    doType: 93,
  }, {
    id: 10,
    title: '项目需求申请',
    userName: '张三测试',
    content: '需求信息',
    time: '9999-99-99',
    doType: 94,
  }, {
    id: 11,
    title: '项目问题申请',
    userName: '张三测试',
    content: '问题信息',
    time: '9999-99-99',
    doType: 95,
  }, {
    id: 12,
    title: '出差申请',
    userName: '张三测试',
    content: '出差信息',
    time: '9999-99-99',
    doType: 96,
  }, {
    id: 13,
    title: '报销申请',
    userName: '张三测试',
    content: '报销信息',
    time: '9999-99-99',
    doType: 97,
  }, ],
  columns: tdoGridColumns,
  gridContainer: 'tdoDataGird',
  toolbarContainer: 'tdoGridToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 20]
};
var tdoGird = $.fn.dlshouwen.grid.init(tdoGridOption);
$(function () {
  tdoGird.load();
});

// 待办管理
var thingsGridColumns = [{
    id: 'title',
    title: '标题',
    width: 200,
    type: 'string',
    columnClass: 'text-center',
  },
  {
    id: 'content',
    title: '主要内容',
    type: 'string',
    columnClass: 'text-left',
  },
  {
    id: 'userName',
    title: '发起人',
    type: 'string',
    width: 80,
    columnClass: 'text-center',
  },
  {
    id: 'time',
    title: '提交时间',
    type: 'date',
    width: 100,
    format: 'yyyy-MM-dd',
    columnClass: 'text-center',
    hideType: 'md|sm|xs',
  },
  {
    id: 'operation',
    title: '操作',
    width: 80,
    type: 'string',
    columnClass: 'text-center',
    resolution: function (value, record, column, grid, dataNo, columnNo) {
      var content = '';
      content += '<button class="btn btn-xs btn-success" onclick="toDo(' + record.id + ',' + record.doType + ');"><i class="fa fa-edit"></i>  办理</button>';
      return content;
    }
  }
];
var thingsGridOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  // check: true,
  // checkWidth: '37px',
  exportFileName: '事项管理',
  datas: [{
      id: 1,
      title: '线索申请',
      userName: '张三测试',
      content: '新增线索申请后的批准操作',
      time: '9999-99-99',
      doType: 1,
    }, {
      id: 2,
      title: '线索申请',
      userName: '张三测试',
      content: '线索申请被退回后的操作',
      time: '9999-99-99',
      doType: 2,
    }, {
      id: 3,
      title: '线索申请',
      userName: '张三测试',
      content: '线索申请批准后的结果',
      time: '9999-99-99',
      doType: 3,
    }, {
      id: 4,
      title: '立项申请',
      userName: '张三测试',
      content: '新增立项申请后的批准操作（勾选了项目经理）',
      time: '9999-99-99',
      doType: 4,
    }, {
      id: 5,
      title: '立项申请',
      userName: '张三测试',
      content: '新增立项申请后的批准操作（没有勾选项目经理）',
      time: '9999-99-99',
      doType: 5,
    }, {
      id: 6,
      title: '立项申请',
      userName: '张三测试',
      content: '立项申请批准通过后的操作（填写商务预测信息）',
      time: '9999-99-99',
      doType: 6,
    }, {
      id: 7,
      title: '立项申请',
      userName: '张三测试',
      content: '立项申请被退回后的操作（不包含商务预测）',
      time: '9999-99-99',
      doType: 7,
    }, {
      id: 8,
      title: '立项申请',
      userName: '张三测试',
      content: '立项申请被退回后的操作（包含商务预测）',
      time: '9999-99-99',
      doType: 8,
    }, {
      id: 9,
      title: '立项申请',
      userName: '张三测试',
      content: '立项申请批准后的结果（包含商务预测）',
      time: '9999-99-99',
      doType: 9,
    }, {
      id: 10,
      title: '立项申请',
      userName: '张三测试',
      content: '立项申请批准后的结果（不包含商务预测）',
      time: '9999-99-99',
      doType: 10,
    }, {
      id: 11,
      title: '投标申请',
      userName: '张三测试',
      content: '新增投标申请后的批准操作',
      time: '9999-99-99',
      doType: 11,
    }, {
      id: 12,
      title: '投标申请',
      userName: '张三测试',
      content: '投标申请被退回的操作',
      time: '9999-99-99',
      doType: 12,
    }, {
      id: 13,
      title: '投标申请',
      userName: '张三测试',
      content: '投标申请批准结果的操作',
      time: '9999-99-99',
      doType: 13,
    }, {
      id: 14,
      title: '投标申请',
      userName: '张三测试',
      content: '投标审批批准通过后的商务信息文件的上传操作',
      time: '9999-99-99',
      doType: 14,
    }, {
      id: 15,
      title: '投标申请',
      userName: '张三测试',
      content: '投标审批批准通过后的法务合同文件的上传操作',
      time: '9999-99-99',
      doType: 15,
    }, {
      id: 16,
      title: '投标申请',
      userName: '张三测试',
      content: '投标审批批准通过后的技术方案文件的上传操作',
      time: '9999-99-99',
      doType: 16,
    }, {
      id: 17,
      title: '投标申请',
      userName: '张三测试',
      content: '投标审批批准通过后的交付方案文件的上传操作',
      time: '9999-99-99',
      doType: 17,
    }, {
      id: 18,
      title: '投标申请',
      userName: '张三测试',
      content: '投标商务信息文件的批准操作',
      time: '9999-99-99',
      doType: 18,
    }, {
      id: 19,
      title: '投标申请',
      userName: '张三测试',
      content: '投标法务合同文件的批准操作',
      time: '9999-99-99',
      doType: 19,
    }, {
      id: 20,
      title: '投标申请',
      userName: '张三测试',
      content: '投标技术方案文件的批准操作',
      time: '9999-99-99',
      doType: 20,
    }, {
      id: 21,
      title: '投标申请',
      userName: '张三测试',
      content: '投标交付方案文件的批准操作',
      time: '9999-99-99',
      doType: 21,
    }, {
      id: 22,
      title: '投标申请',
      userName: '张三测试',
      content: '投标商务信息文件被退回操作',
      time: '9999-99-99',
      doType: 22,
    }, {
      id: 23,
      title: '投标申请',
      userName: '张三测试',
      content: '投标法务合同文件被退回操作',
      time: '9999-99-99',
      doType: 23,
    }, {
      id: 24,
      title: '投标申请',
      userName: '张三测试',
      content: '投标技术方案文件被退回操作',
      time: '9999-99-99',
      doType: 24,
    }, {
      id: 25,
      title: '投标申请',
      userName: '张三测试',
      content: '投标交付方案文件被退回操作',
      time: '9999-99-99',
      doType: 25,
    }, {
      id: 26,
      title: '投标申请',
      userName: '张三测试',
      content: '投标申请综合审批的操作',
      time: '9999-99-99',
      doType: 26,
    }, {
      id: 27,
      title: '投标申请',
      userName: '张三测试',
      content: '投标申请综合审批结果的展示',
      time: '9999-99-99',
      doType: 27,
    }, {
      id: 28,
      title: '投标申请',
      userName: '张三测试',
      content: '投标申请综合审批通过销售领导审批的操作',
      time: '9999-99-99',
      doType: 28,
    }, {
      id: 29,
      title: '投标申请',
      userName: '张三测试',
      content: '投标申请综合审批通过销售领导审批被退回的操作',
      time: '9999-99-99',
      doType: 29,
    }, {
      id: 30,
      title: '投标申请',
      userName: '张三测试',
      content: '投标申请综合审批通过销售领导审批结果的操作',
      time: '9999-99-99',
      doType: 30,
    }, {
      id: 31,
      title: '商务报价申请',
      userName: '张三测试',
      content: '新增商务报价申请批准的操作',
      time: '9999-99-99',
      doType: 31,
    }, {
      id: 32,
      title: '商务报价申请',
      userName: '张三测试',
      content: '商务报价申请批准被退回的操作',
      time: '9999-99-99',
      doType: 32,
    }, {
      id: 33,
      title: '商务报价申请',
      userName: '张三测试',
      content: '商务报价申请批准结果的操作',
      time: '9999-99-99',
      doType: 33,
    }, {
      id: 34,
      title: '合同信息申请',
      userName: '张三测试',
      content: '合同信息申请批准的操作',
      time: '9999-99-99',
      doType: 34,
    }, {
      id: 35,
      title: '合同信息申请',
      userName: '张三测试',
      content: '合同信息申请批准被退回的操作',
      time: '9999-99-99',
      doType: 35,
    }, {
      id: 36,
      title: '合同信息申请',
      userName: '张三测试',
      content: '合同信息申请批准结果的操作',
      time: '9999-99-99',
      doType: 36,
    }, {
      id: 37,
      title: '交付阶段商务预测',
      userName: '张三测试',
      content: '合同信息申请批准通过后，生成交付阶段商务预测申请的操作',
      time: '9999-99-99',
      doType: 37,
    }, {
      id: 38,
      title: '交付阶段商务预测',
      userName: '张三测试',
      content: '交付阶段商务预测，申请审批的操作',
      time: '9999-99-99',
      doType: 38,
    }, {
      id: 39,
      title: '交付阶段商务预测',
      userName: '张三测试',
      content: '交付阶段商务预测申请，批准被退回的操作',
      time: '9999-99-99',
      doType: 39,
    }, {
      id: 40,
      title: '交付阶段商务预测',
      userName: '张三测试',
      content: '交付阶段商务预测申请，批准结果的操作',
      time: '9999-99-99',
      doType: 40,
    }, {
      id: 41,
      title: '交付阶段初验报告申请',
      userName: '张三测试',
      content: '交付阶段初验报告申请，批准的操作',
      time: '9999-99-99',
      doType: 41,
    }, {
      id: 42,
      title: '交付阶段初验报告申请',
      userName: '张三测试',
      content: '交付阶段初验报告申请，批准被退回操作',
      time: '9999-99-99',
      doType: 42,
    }, {
      id: 43,
      title: '交付阶段初验报告申请',
      userName: '张三测试',
      content: '交付阶段初验报告申请，批准结果的操作',
      time: '9999-99-99',
      doType: 43,
    }, {
      id: 44,
      title: '交付阶段终验报告申请',
      userName: '张三测试',
      content: '交付阶段终验报告申请，批准的操作',
      time: '9999-99-99',
      doType: 44,
    }, {
      id: 45,
      title: '交付阶段终验报告申请',
      userName: '张三测试',
      content: '交付阶段终验报告申请，批准被退回的操作',
      time: '9999-99-99',
      doType: 45,
    }, {
      id: 46,
      title: '交付阶段终验报告申请',
      userName: '张三测试',
      content: '交付阶段终验报告申请，批准结果的操作',
      time: '9999-99-99',
      doType: 46,
    },
    // {
    //   id: 71,
    //   title: '项目采购借货',
    //   userName: '张三测试',
    //   content: '项目采购借货，项目负责人审批',
    //   time: '9999-99-99',
    //   doType: 71,
    // }, {
    //   id: 72,
    //   title: '项目采购借货',
    //   userName: '张三测试',
    //   content: '项目采购借货，项目负责人审批通过，资产管理员调配',
    //   time: '9999-99-99',
    //   doType: 72,
    // }, {
    //   id: 73,
    //   title: '项目采购借货',
    //   userName: '张三测试',
    //   content: '项目采购借货，项目负责人审批通过，资产管理员调配结束，资产管理员和申请人沟通',
    //   time: '9999-99-99',
    //   doType: 73,
    // }, {
    //   id: 74,
    //   title: '项目采购借货',
    //   userName: '张三测试',
    //   content: '项目采购借货，最终审批',
    //   time: '9999-99-99',
    //   doType: 74,
    // }, {
    //   id: 75,
    //   title: '采购比价单流程',
    //   userName: '张三测试',
    //   content: '项目采购借货，财务专员审批',
    //   time: '9999-99-99',
    //   doType: 75,
    // }, {
    //   id: 76,
    //   title: '采购比价单流程',
    //   userName: '张三测试',
    //   content: '项目采购借货，分管采购副总审批',
    //   time: '9999-99-99',
    //   doType: 76,
    // }, {
    //   id: 77,
    //   title: '采购比价单流程',
    //   userName: '张三测试',
    //   content: '项目采购借货，采购专员采购确认',
    //   time: '9999-99-99',
    //   doType: 77,
    // }, 
    // {
    //   id: 78,
    //   title: '行政类采购',
    //   userName: '张三测试',
    //   content: '开始→填写采购申请信息→关联项目负责人审批→行政总监审批→高级人力资源及行政总监→总经理→申请人(采购)→结束',
    //   time: '9999-99-99',
    //   doType: 78,
    // }, {
    //   id: 79,
    //   title: '合同类采购',
    //   userName: '张三测试',
    //   content: '开始→填写合同类采购申请信息→相关联项目负责人审批→	分管领导审批→财务专员审批→分管副总→采购专员→结束',
    //   time: '9999-99-99',
    //   doType: 79,
    // },  {
    //   id: 80,
    //   title: 'IT 办公设备采购',
    //   userName: '张三测试',
    //   content: '开始→经办人(填写采购信息)→相关联项目负责人审批→总监→分管副总→总经理→采购专员(采购比价单)→财务专员→副总→采购专员→结束',
    //   time: '9999-99-99',
    //   doType: 80,
    // },{
    //   id: 81,
    //   title: 'IT 办公设备采购',
    //   userName: '填写报价',
    //   content: '开始→经办人(填写采购信息)→相关联项目负责人审批→总监→分管副总→总经理→采购专员(采购比价单)→财务专员→副总→采购专员→结束',
    //   time: '9999-99-99',
    //   doType: 81,
    // }, {
    //   id: 82,
    //   title: 'IT 办公设备采购',
    //   userName: '历史库',
    //   content: '开始→经办人(填写采购信息)→相关联项目负责人审批→总监→分管副总→总经理→采购专员(采购比价单)→财务专员→副总→采购专员→结束',
    //   time: '9999-99-99',
    //   doType: 82,
    // }, {
    //   id: 83,
    //   title: 'IT 办公设备采购',
    //   userName: '比价审批',
    //   content: '开始→经办人(填写采购信息)→相关联项目负责人审批→总监→分管副总→总经理→采购专员(采购比价单)→财务专员→副总→采购专员→结束',
    //   time: '9999-99-99',
    //   doType: 83,
    // }, {
    //   id: 84,
    //   title: 'IT 办公设备采购',
    //   userName: '确认采购',
    //   content: '开始→经办人(填写采购信息)→相关联项目负责人审批→总监→分管副总→总经理→采购专员(采购比价单)→财务专员→副总→采购专员→结束',
    //   time: '9999-99-99',
    //   doType: 84,
    // },
    // 员工入职离职申请

    // 普通类采购
    // {
    //   id: 78,
    //   title: '普通类采购',
    //   userName: '张三测试',
    //   content: '开始→填写采购申请信息→关联项目负责人审批→部门/产品线总监审批→分管副总审批→总经理审批→采购专员→结束',
    //   time: '9999-99-99',
    //   doType: 78,
    // }, 
    // 项目请购
    {
      id: 102,
      title: '项目请购',
      userName: '员工',
      content: '资产管理员调配清单（采购清单、资产库申请清单相互转换调配）',
      time: '9999-99-99',
      doType: 102,
    },
    {
      id: 104,
      title: '项目请购',
      userName: '员工',
      content: '项目请购（采购清单列表、资产库申请清单列表），领导审批确认清单',
      time: '9999-99-99',
      doType: 104,
    },
    {
      id: 112,
      title: '项目请购',
      userName: '员工',
      content: '采购清单（查看历史库参考比价信息，添加供应商/附件-供应商报价文件）',
      time: '9999-99-99',
      doType: 112,
    },
    // {
    //   id: 103,
    //   title: '项目请购',
    //   userName: '员工',
    //   content: '采购比价（填写供应商列表）',
    //   time: '9999-99-99',
    //   doType: 103,
    // },
    {
      id: 105,
      title: '项目请购',
      userName: '员工',
      content: '采购比价（对应当地财务经理审批-采购部总监审批）',
      time: '9999-99-99',
      doType: 105,
    },
    {
      id: 106,
      title: '项目请购',
      userName: '员工',
      content: '比价确认后发送给制单人：上传-(供货协议维护)，完成上传后提交并发送用章申请',
      time: '9999-99-99',
      doType: 106,
    },
    {
      id: 113,
      title: '项目请购',
      userName: '员工',
      content: '协议上传后，请购申请人确认—当地财务经理审批—采购总监审批(根据金额分配)',
      time: '9999-99-99',
      doType: 113,
    },
    {
      id: 114,
      title: '项目请购',
      userName: '员工',
      content: '协议上传后，(发起人、当地财务、采购部门领导)确认后！印章管理员确认是否(已用印)',
      time: '9999-99-99',
      doType: 114,
    },
    {
      id: 115,
      title: '项目请购',
      userName: '员工',
      content: '协议用印确认后，制单人存档确认',
      time: '9999-99-99',
      doType: 115,
    },
    {
      id: 109,
      title: '项目请购',
      userName: '员工',
      content: '制单人存档确认后，采购清单采购物资验收确认(采购人员签收、IT中心接收、申请人验收)',
      time: '9999-99-99',
      doType: 109,
    },
    {
      id: 107,
      title: '项目请购',
      userName: '员工',
      content: '设备验收单打印，导出word操作',
      time: '9999-99-99',
      doType: 107,
    },
    {
      id: 108,
      title: '项目请购',
      userName: '员工',
      content: '采购清单资产入库',
      time: '9999-99-99',
      doType: 108,
    },
    // {
    //   id: 116,
    //   title: '项目请购',
    //   userName: '员工',
    //   content: '采购清单入库后，资产验收',
    //   time: '9999-99-99',
    //   doType: 116,
    // },
    // {
    //   id: 107,
    //   title: '项目请购',
    //   userName: '员工',
    //   content: '资产库转移，接收人确认接收',
    //   time: '9999-99-99',
    //   doType: 107,
    // },
    {
      id: 110,
      title: '资产录入',
      userName: '员工',
      content: '资产管理员录入资产后入库确认',
      time: '9999-99-99',
      doType: 110,
    },
    {
      id: 111,
      title: '个人资产申请',
      userName: '员工',
      content: '个人资产申请，资产管理员调配资产库操作页面',
      time: '9999-99-99',
      doType: 111,
    },
    {
      id: 118,
      title: '员工入职流程',
      userName: 'HR',
      content: '人事填写申请—人事领导审批-录入基础信息并分配工号-综管部分配座位-通知IT部门开通email和相关账号并填写-信息系统自动通过邮件发送信息系统账号',
      time: '9999-99-99',
      doType: 118,
    },
    {
      id: 123,
      title: '员工离职流程',
      userName: '员工',
      content: '填写申请-工作交接登记（查询相关表格）-部门领导审批-人事审批-相关领导审批-信息系统查询相关离职约束（资产，证书使用，审批负责角色，项目内部工作等）并由运管部确认-清退资产-it部门关闭email账号-综管部回收座位-信息系统结束',
      time: '9999-99-99',
      doType: 123,
    },

  ],
  columns: thingsGridColumns,
  gridContainer: 'thingsDataGird',
  toolbarContainer: 'thingsGridToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 20]
};
var thingsGird = $.fn.dlshouwen.grid.init(thingsGridOption);
$(function () {
  thingsGird.load();
});
// 待办类型跳转
function toDo(id, doType) {
  if (doType == 1) {
    window.location.href = "../../do/edit/edit-do-1.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 2) {
    window.location.href = "../../do/edit/edit-do-2.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 3) {
    window.location.href = "../../do/edit/edit-do-3.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 4) {
    window.location.href = "../../do/edit/edit-do-4.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 5) {
    window.location.href = "../../do/edit/edit-do-5.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 6) {
    window.location.href = "../../do/edit/edit-do-6.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 7) {
    window.location.href = "../../do/edit/edit-do-7.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 8) {
    window.location.href = "../../do/edit/edit-do-8.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 9) {
    window.location.href = "../../do/edit/edit-do-9.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 10) {
    window.location.href = "../../do/edit/edit-do-10.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 11) {
    window.location.href = "../../do/edit/edit-do-11.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 12) {
    window.location.href = "../../do/edit/edit-do-12.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 13) {
    window.location.href = "../../do/edit/edit-do-13.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 14) {
    window.location.href = "../../do/edit/edit-do-14.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 15) {
    window.location.href = "../../do/edit/edit-do-15.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 16) {
    window.location.href = "../../do/edit/edit-do-16.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 17) {
    window.location.href = "../../do/edit/edit-do-17.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 18) {
    window.location.href = "../../do/edit/edit-do-18.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 19) {
    window.location.href = "../../do/edit/edit-do-19.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 20) {
    window.location.href = "../../do/edit/edit-do-20.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 21) {
    window.location.href = "../../do/edit/edit-do-21.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 22) {
    window.location.href = "../../do/edit/edit-do-22.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 23) {
    window.location.href = "../../do/edit/edit-do-23.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 24) {
    window.location.href = "../../do/edit/edit-do-24.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 25) {
    window.location.href = "../../do/edit/edit-do-25.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 26) {
    window.location.href = "../../do/edit/edit-do-26.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 27) {
    window.location.href = "../../do/edit/edit-do-27.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 28) {
    window.location.href = "../../do/edit/edit-do-28.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 29) {
    window.location.href = "../../do/edit/edit-do-29.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 30) {
    window.location.href = "../../do/edit/edit-do-30.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 31) {
    window.location.href = "../../do/edit/edit-do-31.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 32) {
    window.location.href = "../../do/edit/edit-do-32.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 33) {
    window.location.href = "../../do/edit/edit-do-33.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 34) {
    window.location.href = "../../do/edit/edit-do-34.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 35) {
    window.location.href = "../../do/edit/edit-do-35.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 36) {
    window.location.href = "../../do/edit/edit-do-36.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 37) {
    window.location.href = "../../do/edit/edit-do-37.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 38) {
    window.location.href = "../../do/edit/edit-do-38.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 39) {
    window.location.href = "../../do/edit/edit-do-39.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 40) {
    window.location.href = "../../do/edit/edit-do-40.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 41) {
    window.location.href = "../../do/edit/edit-do-41.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 42) {
    window.location.href = "../../do/edit/edit-do-42.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 43) {
    window.location.href = "../../do/edit/edit-do-43.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 44) {
    window.location.href = "../../do/edit/edit-do-44.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 45) {
    window.location.href = "../../do/edit/edit-do-45.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 46) {
    window.location.href = "../../do/edit/edit-do-46.html" + '?id=' + id + '&doType=' + doType;
  }

  // 我的发起
  if (doType == 58) {
    window.location.href = "../../do/edit/edit-do-58.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 59) {
    window.location.href = "../../do/edit/edit-do-59.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 60) {
    window.location.href = "../../do/edit/edit-do-60.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 61) {
    window.location.href = "../../do/edit/edit-do-61.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 62) {
    window.location.href = "../../do/edit/edit-do-62.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 63) {
    window.location.href = "../../do/edit/edit-do-63.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 64) {
    window.location.href = "../../do/edit/edit-do-64.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 65) {
    window.location.href = "../../do/edit/edit-do-65.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 66) {
    window.location.href = "../../do/edit/edit-do-66.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 67) {
    window.location.href = "../../do/edit/edit-do-67.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 68) {
    window.location.href = "../../do/edit/edit-do-68.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 69) {
    window.location.href = "../../do/edit/edit-do-69.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 70) {
    window.location.href = "../../do/edit/edit-do-70.html" + '?id=' + id + '&doType=' + doType;
  }

  // 已办事项
  if (doType == 85) {
    window.location.href = "../../do/edit/edit-do-85.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 86) {
    window.location.href = "../../do/edit/edit-do-86.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 87) {
    window.location.href = "../../do/edit/edit-do-87.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 88) {
    window.location.href = "../../do/edit/edit-do-88.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 89) {
    window.location.href = "../../do/edit/edit-do-89.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 90) {
    window.location.href = "../../do/edit/edit-do-90.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 91) {
    window.location.href = "../../do/edit/edit-do-91.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 92) {
    window.location.href = "../../do/edit/edit-do-92.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 93) {
    window.location.href = "../../do/edit/edit-do-93.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 94) {
    window.location.href = "../../do/edit/edit-do-94.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 95) {
    window.location.href = "../../do/edit/edit-do-95.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 96) {
    window.location.href = "../../do/edit/edit-do-96.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 97) {
    window.location.href = "../../do/edit/edit-do-97.html" + '?id=' + id + '&doType=' + doType;
  }

  // // 项目借货采购
  // if (doType == 71) {
  //   window.location.href = "../../do/edit/edit-do-71.html" + '?id=' + id + '&doType=' + doType;
  // }
  // if (doType == 72) {
  //   window.location.href = "../../do/edit/edit-do-72.html" + '?id=' + id + '&doType=' + doType;
  // }
  // if (doType == 73) {
  //   window.location.href = "../../do/edit/edit-do-73.html" + '?id=' + id + '&doType=' + doType;
  // }
  // if (doType == 74) {
  //   window.location.href = "../../do/edit/edit-do-74.html" + '?id=' + id + '&doType=' + doType;
  // }

  // // 采购比价单审批流程
  // if (doType == 75) {
  //   window.location.href = "../../do/edit/edit-do-75.html" + '?id=' + id + '&doType=' + doType;
  // }
  // if (doType == 76) {
  //   window.location.href = "../../do/edit/edit-do-76.html" + '?id=' + id + '&doType=' + doType;
  // }
  // if (doType == 77) {
  //   window.location.href = "../../do/edit/edit-do-77.html" + '?id=' + id + '&doType=' + doType;
  // }

  // // 普通类采购
  if (doType == 78) {
    window.location.href = "../../do/edit/edit-do-78.html" + '?id=' + id + '&doType=' + doType;
  }

  // // 合同类采购
  // if (doType == 79) {
  //   window.location.href = "../../do/edit/edit-do-79.html" + '?id=' + id + '&doType=' + doType;
  // }

  // // IT 办公设备采购
  // if (doType == 80) {
  //   window.location.href = "../../do/edit/edit-do-80.html" + '?id=' + id + '&doType=' + doType;
  // }
  // if (doType == 81) {
  //   window.location.href = "../../do/edit/edit-do-81.html" + '?id=' + id + '&doType=' + doType;
  // }
  // if (doType == 82) {
  //   window.location.href = "../../do/edit/edit-do-82.html" + '?id=' + id + '&doType=' + doType;
  // }
  // if (doType == 83) {
  //   window.location.href = "../../do/edit/edit-do-83.html" + '?id=' + id + '&doType=' + doType;
  // }
  // if (doType == 84) {
  //   window.location.href = "../../do/edit/edit-do-84.html" + '?id=' + id + '&doType=' + doType;
  // }

  // 项目采购
  if (doType == 102) {
    window.location.href = "../../do/edit/edit-do-102.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 103) {
    window.location.href = "../../do/edit/edit-do-103.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 104) {
    window.location.href = "../../do/edit/edit-do-104.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 105) {
    window.location.href = "../../do/edit/edit-do-105.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 106) {
    window.location.href = "../../do/edit/edit-do-106.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 107) {
    window.location.href = "../../do/edit/edit-do-107.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 108) {
    window.location.href = "../../do/edit/edit-do-108.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 109) {
    window.location.href = "../../do/edit/edit-do-109.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 110) {
    window.location.href = "../../do/edit/edit-do-110.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 111) {
    window.location.href = "../../do/edit/edit-do-111.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 112) {
    window.location.href = "../../do/edit/edit-do-112.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 113) {
    window.location.href = "../../do/edit/edit-do-113.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 114) {
    window.location.href = "../../do/edit/edit-do-114.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 115) {
    window.location.href = "../../do/edit/edit-do-115.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 116) {
    window.location.href = "../../do/edit/edit-do-116.html" + '?id=' + id + '&doType=' + doType;
  }
  if (doType == 117) {
    window.location.href = "../../do/edit/edit-do-117.html" + '?id=' + id + '&doType=' + doType;
  }

  //员工入职
  if (doType == 118) {
    window.location.href = "../../do/edit/edit-do-118.html" + '?id=' + id + '&doType=' + doType;
  }
  //员工离职
  if (doType == 123) {
    window.location.href = "../../do/edit/edit-do-123.html" + '?id=' + id + '&doType=' + doType;
  }

}
//文件下载权限申请
$(".download-icon").on('click', function () {
  //询问框
  layer.confirm('权限不足，是否申请更高权限？', {
    title: '提示信息',
    btn: ['申请', '取消'] //按钮
  }, function () {
    layer.msg('申请成功', {
      icon: 1
    });
  });
});
// 立项选择展示隐藏效果
$('#remember').change(function () {
  var status = $('#remember').prop("checked");
  if (status) {
    $('.hideprobox').show()
  } else {
    $('.hideprobox').hide()
  }
});
// 立项信息-项目指标
var proinColumns = [{
  id: 'indName',
  title: '指标名称',
  width: 160,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'indMsg',
  title: '指标描述',
  type: 'string',
  columnClass: 'text-left',
}, {
  id: 'indTime',
  title: '完成时间',
  type: 'string',
  width: 100,
  columnClass: 'text-left',
}, ];
var proinOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '项目指标',
  datas: [{
    indName: '指标名称测试数据',
    indMsg: '指标描述测试数据',
    indTime: '9999-99-99',
  }, ],
  columns: proinColumns,
  gridContainer: 'proinContainer',
  toolbarContainer: 'proinToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var proinGrid = $.fn.dlshouwen.grid.init(proinOption);
$(function () {
  proinGrid.load();
});
// 立项信息-其他费用
var otherColumns = [{
  id: 'things',
  title: '事由',
  type: 'string',
  columnClass: 'text-left',
}, {
  id: 'amount',
  title: '预算金额',
  width: 200,
  type: 'string',
  columnClass: 'text-center',
}, ];
var otherOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '其他费用',
  datas: [{
    things: 'XXXXXX费用支出测试数据',
    amount: '￥299929.99',
  }, ],
  columns: otherColumns,
  gridContainer: 'otherContainer',
  toolbarContainer: 'otherToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var otherGrid = $.fn.dlshouwen.grid.init(otherOption);
$(function () {
  otherGrid.load();
});
// 立项信息-其他费用
var other1Columns = [{
  id: 'things',
  title: '事由',
  type: 'string',
  columnClass: 'text-left',
}, {
  id: 'amount',
  title: '预算金额',
  width: 200,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'operation',
  title: '操作',
  type: 'string',
  width: 150,
  columnClass: 'text-center',
  resolution: function (value, record, column, grid, dataNo, columnNo) {
    var content = '';
    content += '<button class="btn btn-xs btn-info" onclick="layer.msg(\'编辑：' + record.things + '信息\');"><i class="fa fa-edit"></i>  编辑</button>';
    content += '  ';
    content += '<button class="btn btn-xs btn-danger" onclick="del(' + record.id + ');"><i class="fa fa-trash-o"></i>  删除</button>';
    return content;
  }
}];
var other1Option = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '其他费用',
  datas: [{
    things: 'XXXXXX费用支出测试数据',
    amount: '￥299929.99',
  }, ],
  columns: other1Columns,
  gridContainer: 'other1Container',
  toolbarContainer: 'other1ToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var other1Grid = $.fn.dlshouwen.grid.init(other1Option);
$(function () {
  other1Grid.load();
});
// 立项信息-项目指标
var proin1Columns = [{
  id: 'indName',
  title: '指标名称',
  width: 160,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'indMsg',
  title: '指标描述',
  type: 'string',
  columnClass: 'text-left',
}, {
  id: 'indTime',
  title: '完成时间',
  type: 'string',
  width: 100,
  columnClass: 'text-left',
}, {
  id: 'operation',
  title: '操作',
  width: 150,
  type: 'string',
  columnClass: 'text-center',
  resolution: function (value, record, column, grid, dataNo, columnNo) {
    var content = '';
    content += '<button class="btn btn-xs btn-info" onclick="layer.msg(\'编辑：' + record.indName + '信息\');"><i class="fa fa-edit"></i>  编辑</button>';
    content += '  ';
    content += '<button class="btn btn-xs btn-danger" onclick="del(' + record.id + ');"><i class="fa fa-trash-o"></i>  删除</button>';
    return content;
  }
}];
var proin1Option = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '项目指标',
  datas: [{
    indName: '指标名称测试数据',
    indMsg: '指标描述测试数据',
    indTime: '9999-99-99',
  }, ],
  columns: proin1Columns,
  gridContainer: 'proin1Container',
  toolbarContainer: 'proin1ToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var proin1Grid = $.fn.dlshouwen.grid.init(proin1Option);
$(function () {
  proin1Grid.load();
});
//项目指标表单显示隐藏
function hideproin() {
  $(".hideproin").hide();
};

function showproin() {
  $(".hideproin").show();
};
//项目其他费用表单显示隐藏
function hideother() {
  $(".hideother").hide();
};

function showother() {
  $(".hideother").show();
};
//时间控件
$('#datetime').datepicker({
  format: 'yyyy-mm-dd'
});
$('#datetime-1').datepicker({
  format: 'yyyy-mm-dd'
});
$('#datetime-2').datepicker({
  format: 'yyyy-mm-dd'
});
//文件上传统一字段
function showfile() {
  $(".hidefile").show();
}

function hidefile() {
  $(".hidefile").hide();
}
// 商务报价条目管理显示隐藏
function showprice() {
  $(".hideprice").show();
}

function hideprice() {
  $(".hideprice").hide();
}
// 商务报价-历史记录
var piclogColumns = [{
  id: 'time',
  title: '提交日期',
  width: 100,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'subName',
  title: '提交人',
  type: 'string',
  width: 100,
  columnClass: 'text-center',
}, {
  id: 'price',
  title: '商务报价总价',
  type: 'string',
  width: 100,
  columnClass: 'text-center',
}, {
  id: 'buy',
  title: '商务信息预测',
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'msg',
  title: '申请说明',
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'finish',
  title: '审批结果',
  type: 'finish',
  width: 100,
  codeTable: status,
  columnClass: 'text-center',
  resolution: function (value, record, column, grid, dataNo, columnNo) {
    var content = '';
    if (value == 0) {
      content += '<span style="background:#d9534f;padding:2px 10px;color:white;">未通过</span>';
    }
    if (value == 1) {
      content += '<span style="background:#5cb85c;padding:2px 10px;color:white;">已通过</span>';
    }
    return content;
  }
}, {
  id: 'operation',
  title: '报价文件',
  width: 100,
  type: 'string',
  columnClass: 'text-center',
  resolution: function (value, record, column, grid, dataNo, columnNo) {
    var content = '';
    content += '<button class="btn btn-xs btn-info" onclick="down(' + record.id + ');"><i class="icon-cloud-download"></i>  下载</button>';
    return content;
  }
}];
var piclogOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '商务报价-历史记录',
  datas: [{
    id: 1,
    time: '2019-01-09',
    subName: '张三',
    price: '￥222.00元',
    buy: '商务信息预测测试数据',
    msg: '申请说明测试数据',
    finish: 0,
  }, ],
  columns: piclogColumns,
  gridContainer: 'piclogContainer',
  toolbarContainer: 'piclogToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var piclogGrid = $.fn.dlshouwen.grid.init(piclogOption);
$(function () {
  piclogGrid.load();
});
// 商务报价
var priceColumns = [{
  id: 'type',
  title: '分类',
  width: 160,
  type: 'string',
  columnClass: 'text-center',
}, {
  id: 'liPrice',
  title: '目录价',
  type: 'string',
  width: 100,
  columnClass: 'text-center',
}, {
  id: 'discount',
  title: '折扣率',
  type: 'string',
  width: 100,
  columnClass: 'text-center',
}, {
  id: 'discount1',
  title: '折后率',
  type: 'string',
  width: 100,
  columnClass: 'text-center',
}, {
  id: 'discount2',
  title: '税率',
  type: 'string',
  width: 100,
  columnClass: 'text-center',
}, {
  id: 'fisPrice',
  title: '税后价',
  type: 'string',
  width: 100,
  columnClass: 'text-center',
}, {
  id: 'test',
  title: '说明',
  type: 'string',
  columnClass: 'text-left',
}, ];
var priceOption = {
  lang: 'zh-cn',
  ajaxLoad: false,
  // loadURL:'url',
  exportFileName: '商务报价',
  datas: [{
    type: '软件',
    liPrice: '￥222.00元',
    discount: '20%',
    discount1: '30%',
    discount2: '30%',
    fisPrice: '￥1111.00元',
    test: '说明测试数据'
  }, ],
  columns: priceColumns,
  gridContainer: 'priceContainer',
  toolbarContainer: 'priceToolBarContainer',
  tools: '',
  pageSize: 10,
  pageSizeLimit: [10, 15, 20]
};
var priceGrid = $.fn.dlshouwen.grid.init(priceOption);
$(function () {
  priceGrid.load();
});
//文件下载权限事件
function down(id) {
  //询问框
  layer.confirm('权限不足，是否申请更高权限？', {
    title: '提示信息',
    btn: ['申请', '取消'] //按钮
  }, function () {
    layer.msg('申请成功', {
      icon: 1
    });
  });
}